package com.test.designPattern.behaviorType.chainOfResponsibilityPattern;

/**
 * 责任链模式测试
 *
 * @author wangjie
 * @version V1.0
 * @date 2020/4/8
 */
public class Client {

    public static void main(String[] args) {
        Handler handler1 = new ConcreteHandler1();
        Handler handler2 = new ConcreteHandler2();
        handler1.setNextHandler(handler2);
        handler1.handleMessage(1);
        handler1.handleMessage(2);
    }
}
